package com.woniu.springbootrbac.service;

import com.woniu.springbootrbac.dto.PerDto;
import com.woniu.springbootrbac.entity.SysPermission;
import com.woniu.springbootrbac.vo.PerVo;
import com.woniu.springbootrbac.vo.TreeNode;

import java.util.List;

public interface PerService {


    int insertPermission(PerDto perDto);
    /**
     * @Description 得到所有的权限
     * @param
     * @Return java.util.List<com.woniuxy.springbootrbac.vo.TreeNode>
     * @Author  fengSir
     * @Date    Create by 2022-11-30 15:06
     */
    List<TreeNode>  selectAllPer(Integer pid);
    /**
     * @Description 根据角色id,得到当前角色对应的权限id
     * @param rid
     * @Return java.util.List<java.lang.Integer>
     * @Author  fengSir
     * @Date    Create by 2022-11-30 15:07
     */
    List<Integer> selectPerByRid(Integer rid);




    List<PerVo> selectMenuByTel(String tel,Integer pid);
}
